package cn.edu.scau.cmi.dengzejun.chapter05;

public class Rectangle {
	double x,y,width,height;
	
	public void SetX(double a) {
		x=a;
	}
	
	public double GetX() {
		return x;
	}
	
	public void SetY(double b) {
		y=b;
	}
	
	public double GetY() {
		return y;
	}
	
	public void SetWidth(double w) {
		if (w>0) {
			width=w;
		}
	}
	
	public double GetWidth() {
		return width;
	}
	
	public void SetHeight(double h) {
		if (h>0) {
			height=h;
		}
	}
	
	public double GetHeight() {
		return height;
	}
}
